<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

<script>
    var newname = []
    var arr = [
    {name: '赤峰市分行', value: '阿鲁科尔沁旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132328&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '阿荣旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132329&ctmid=7554340'},
    {name: '赤峰市分行', value: '敖汉旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132330&ctmid=7554340'},
    {name: '赤峰市分行', value: '巴林右旗大板支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132332&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '察哈尔右翼后旗文卫南路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132333&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '陈巴尔虎旗巴尔虎大街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132334&ctmid=7554340'},
    {name: '巴彦淖尔市分行', value: '磴口县东风路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132335&ctmid=7554340'},
    {name: '锡林郭勒盟分行', value: '东乌珠穆沁旗乌拉盖东街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132336&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '额尔古纳市哈撒尔路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132337&ctmid=7554340'},
    {name: '阿拉善盟分行', value: '额鲁特路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132339&ctmid=7554340'},
    {name: '阿拉善盟分行', value: '额鲁特路支行-理财经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132340&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '鄂伦春旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132341&ctmid=7554340'},
    {name: '鄂尔多斯市分行', value: '鄂托克旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132342&ctmid=7554340'},
    {name: '鄂尔多斯市分行', value: '鄂托克前旗苏力迪支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132343&ctmid=7554340'},
    {name: '锡林郭勒盟分行', value: '二连浩特市苏尼特街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132344&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '根河市支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132345&ctmid=7554340'},
    {name: '乌海市分行', value: '海南区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132346&ctmid=7554340'},
    {name: '巴彦淖尔市分行', value: '杭锦后旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132347&ctmid=7554340'},
    {name: '鄂尔多斯市分行', value: '杭锦旗布日都街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132348&ctmid=7554340'},
    {name: '呼和浩特市分行', value: '回民区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132349&ctmid=7554340'},
    {name: '乌海市分行', value: '建设路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132350&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '建设路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132351&ctmid=7554340'},
    {name: '通辽市分行', value: '科尔沁左翼后旗玛拉沁大街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132352&ctmid=7554340'},
    {name: '通辽市分行', value: '科尔沁左翼中旗孝庄文大街支行-柜员', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132354&ctmid=7554340'},
    {name: '兴安盟分行', value: '科右中旗巴彦胡舒大街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132356&ctmid=7554340'},
    {name: '赤峰市分行', value: '克什克腾旗经棚支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132357&ctmid=7554340'},
    {name: '通辽市分行', value: '库伦旗北山支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132358&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '凉城县新华街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132359&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '满洲里市支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132360&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '莫力达瓦达斡尔族自治旗和平路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132361&ctmid=7554340'},
    {name: '内蒙古分行', value: '内蒙古分行-信息科技类岗位', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132362&ctmid=7554340'},
    {name: '乌海市分行', value: '人民北路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132363&ctmid=7554340'},
    {name: '乌海市分行', value: '人民南路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132364&ctmid=7554340'},
    {name: '呼和浩特市分行', value: '赛罕区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132365&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '商都县新风东路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132366&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '四子王旗统建路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132367&ctmid=7554340'},
    {name: '锡林郭勒盟分行', value: '太仆寺旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132368&ctmid=7554340'},
    {name: '通辽市分行', value: '铁南支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132369&ctmid=7554340'},
    {name: '呼和浩特市分行', value: '土左旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132370&ctmid=7554340'},
    {name: '通辽市分行', value: '团结路支行-柜员', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132371&ctmid=7554340'},
    {name: '乌海市分行', value: '乌达区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132372&ctmid=7554340'},
    {name: '巴彦淖尔市分行', value: '乌拉特后旗巴音宝力格路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132373&ctmid=7554340'},
    {name: '巴彦淖尔市分行', value: '乌拉特前旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132374&ctmid=7554340'},
    {name: '巴彦淖尔市分行', value: '乌拉特中旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132375&ctmid=7554340'},
    {name: '鄂尔多斯市分行', value: '乌审旗锡尼路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132376&ctmid=7554340'},
    {name: '巴彦淖尔市分行', value: '五原县支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132377&ctmid=7554340'},
    {name: '呼和浩特市分行', value: '武川县影视西街支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132378&ctmid=7554340'},
    {name: '锡林郭勒盟分行', value: '西乌珠穆沁旗巴彦高勒路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132379&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '新巴尔虎右旗阿拉坦额莫勒路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132380&ctmid=7554340'},
    {name: '呼和浩特市分行', value: '新城区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132381&ctmid=7554340'},
    {name: '阿拉善盟分行', value: '新世纪广场支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132382&ctmid=7554340'},
    {name: '阿拉善盟分行', value: '新世纪广场支行-理财经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132383&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '兴和县兴和大道支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132384&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '牙克石市支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132385&ctmid=7554340'},
    {name: '鄂尔多斯市分行', value: '伊金霍洛旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132386&ctmid=7554340'},
    {name: '呼和浩特市分行', value: '玉泉区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132387&ctmid=7554340'},
    {name: '赤峰市分行', value: '元宝山区支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132388&ctmid=7554340'},
    {name: '兴安盟分行', value: '扎赉特旗支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132389&ctmid=7554340'},
    {name: '呼伦贝尔市分行', value: '扎兰屯市支行营业部-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132390&ctmid=7554340'},
    {name: '鄂尔多斯市分行', value: '准格尔旗景泰华府支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132391&ctmid=7554340'},
    {name: '乌兰察布市分行', value: '卓资县迎宾东路支行-客户经理', link: 'https://xyz.51job.com/external/apply.aspx?jobid=154132392&ctmid=7554340'}
]
    var setarr = arr.forEach((item,index)=>{
        if(newname.indexOf(item.name) == -1){
            newname.push(item.name)
        }
    })
    console.log(newname)
    var zongname = []
    newname.forEach((item,index)=>{
        var ss =  arr.filter((item1,index1)=>{
            return item1.name == item
        })
        zongname.push(ss)
    })
    console.log(zongname)
    var ii = {}
    for(var i = 0;i<zongname.length;i++){
        var index = 0
        var ss1 = []
        for(var j = 0;j<zongname[i].length;j++){
            if(index !== j){
                index = j
            }
            ss1.push({value:zongname[i][j].value,link:zongname[i][j].link})
        }
        ii[zongname[i][index].name] = ss1
    }
    console.log(ii)
</script>